package model

import (
	"time"
)

const DefineNodeName = "define_node"

type DefineNode struct {
	Id    int               `json:"id" orm:"auto" sql:"INT"`
	Key   string            `json:"key" sql:"VARCHAR"`
	Name  map[string]string `json:"name" sql:"JSON"`
	Type  byte              `json:"type" sql:"TINYINT"`
	Range []int             `json:"range" sql:"JSON"`

	LogicRange int           `json:"logic_range" sql:"INT"`
	Show       []interface{} `json:"show" sql:"JSON"`
	NeedManage bool          `json:"need_manage" sql:"TINYINT"`

	SyncKeys    []string `json:"sync_keys" sql:"JSON"`
	SyncDefault []int    `json:"sync_default" sql:"JSON"`

	OnlyPath bool `json:"only_path" sql:"TINYINT"`

	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`
}
